package cn.xfdzx.android.apps.shop.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.xfdzx.android.apps.shop.R;

/**
 * Creator: zf.
 * Date: 2020/10/14.
 * Description:批发售后服务进度适配器.
 */
public class AfterServiceProcessListMarketAdapter extends BaseQuickAdapter<String, BaseViewHolder>  {
    public AfterServiceProcessListMarketAdapter(@Nullable List<String> data) {
        super(R.layout.item_afterserviceinfo_market, data);
    }

    @Override
    public void setData(int index, @NonNull String data) {
        super.setData(index, data);
    }


    @Override
    protected void convert(final BaseViewHolder viewHolder, final String date) {
        viewHolder.setText(R.id.tv_state,date);


    }
    public void clearDatas(){
        mData.clear();
        notifyDataSetChanged();
    }
    public void refreshDatas(List<String> list){
        super.replaceData(list);
    }

}
